package day1.array;

/**
 * @author joker
 * @date 2022/4/12 0012 - 15:37
 */
public class Student2 extends Student {
//    public int age;
//    public String name;
    public   int id=2;

    @Override
    public void m1() {
//        System.out.println(super.age);
//        super.m1();
        System.out.println("stu2");
    }

    public void m2(int a){

    }

    public void me(){
        System.out.println(this.age);
    }

    public Student2() {
//        super(12);
        System.out.println("s2");

    }



    public static void main(String[] args) {
//        Student2 student2 = new Student2();
//        student2.me();
//        Student student=new Student2();
//        ((Student2) student).me();
//        System.out.println(student.getName());
//        student.m1();
//        student.m2();

//        Student2 student22= (Student2) new Student();
//        System.out.println(student22.age);
//        Object s=new Student2();
//
//        System.out.println(s instanceof Object);
//        Student s=new Student2();
////        ((Student2) s).me();
////        s.m1();
////        s.m2();
//        System.out.println(s.id);
//        Student student=new Student2();
//        student.m1();
        Student student=new Student2();
        System.out.println(student instanceof Student2);
        Student2 s= (Student2) student;
        System.out.println(s instanceof Student2);
        Student ss=new Student();
        System.out.println(ss instanceof Student2);


    }

}
